package net.diaowen.dwsurvey.service;


import net.diaowen.common.plugs.page.Page;
import net.diaowen.common.service.BaseService;
import net.diaowen.dwsurvey.entity.LotteryActivity;

/**
 * 活动Manager
 * @author zhangyuting
 * @date 2019年6月20日
 *
 */
public interface LotteryActivityManager extends BaseService<LotteryActivity, String>{
	
	public Page<LotteryActivity> findPage(Page<LotteryActivity> page, LotteryActivity entity);

	public void save(LotteryActivity lotteryActivity);
	
	public LotteryActivity getBySurveyId(String surveyId);
	
	public String bindSurvey(String lotteryActivityId,String surveyId);
	
	public boolean isStart(String surveyId);
	
	public boolean isRunning(String surveyId,String wxId);
	
}
